package com.system.demo.service;

import com.system.demo.entity.DTO.ForgetPassInfo;
import com.system.demo.entity.DTO.LoginInfo;
import com.system.demo.tool.ResponseResult;


import javax.mail.MessagingException;
import java.util.Map;
/**
 * 类描述: 登录接口
 * @since 1.0
 * @author luodeng
 */

public interface LoginService {
    ResponseResult<Map<String, Object>> getCaptcha();
    ResponseResult<?> login(LoginInfo loginInfo, String token);

    ResponseResult<Map<String, Object>> sendMail(String emailReceiver) throws MessagingException;
    ResponseResult<Map<String, Object>> forgetPass(ForgetPassInfo forgetPassInfo, String token);

    ResponseResult<?> logout();
}
